# class Solution:
#     def moveZeroes(self, nums: List[int]) -> None:
#         """
#         Do not return anything, modify nums in-place instead.
#         """
#         tail=len(nums)-1
#         i=0
#         while i<tail:
#             if nums[i]==0:
#                 for j in range(i,tail):
#                     nums[j]=nums[j+1]
#                 nums[tail]=0
#                 tail-=1
#             else:
#                 i+=1
